class ProjectTypeBean {
  ProjectTypeBean({
    required this.articleList,
    required this.author,
    required this.children,
    required this.courseId,
    required this.cover,
    required this.desc,
    required this.id,
    required this.lisense,
    required this.lisenseLink,
    required this.name,
    required this.order,
    required this.parentChapterId,
    required this.type,
    required this.userControlSetTop,
    required this.visible,
  });

  final List<dynamic> articleList;
  final String author;
  final List<dynamic> children;
  final int courseId;
  final String cover;
  final String desc;
  final int id;
  final String lisense;
  final String lisenseLink;
  final String name;
  final int order;
  final int parentChapterId;
  final int type;
  final bool userControlSetTop;
  final int visible;

  factory ProjectTypeBean.fromJson(Map<String, dynamic> json){
    return ProjectTypeBean(
      articleList: json["articleList"] == null ? [] : List<dynamic>.from(json["articleList"]!.map((x) => x)),
      author: json["author"] ?? "",
      children: json["children"] == null ? [] : List<dynamic>.from(json["children"]!.map((x) => x)),
      courseId: json["courseId"] ?? 0,
      cover: json["cover"] ?? "",
      desc: json["desc"] ?? "",
      id: json["id"] ?? 0,
      lisense: json["lisense"] ?? "",
      lisenseLink: json["lisenseLink"] ?? "",
      name: json["name"] ?? "",
      order: json["order"] ?? 0,
      parentChapterId: json["parentChapterId"] ?? 0,
      type: json["type"] ?? 0,
      userControlSetTop: json["userControlSetTop"] ?? false,
      visible: json["visible"] ?? 0,
    );
  }

}

/*
{
	"articleList": [],
	"author": "",
	"children": [],
	"courseId": 13,
	"cover": "",
	"desc": "",
	"id": 294,
	"lisense": "",
	"lisenseLink": "",
	"name": "完整项目",
	"order": 145000,
	"parentChapterId": 293,
	"type": 0,
	"userControlSetTop": false,
	"visible": 0
}*/